package mercede.allTable;

import java.io.Serializable;

import javax.persistence.*;

import mercede.allDTOs.personpkDTO;

import java.util.Date;


/**
 * The persistent class for the personpk database table.
 * 
 */
@Entity
@NamedQueries({@NamedQuery(name="Personpk.findAll", query="SELECT p FROM Personpk p"),
	@NamedQuery(name="Personpk.FIND_BY_MAIL", query="SELECT p FROM  Personpk p WHERE p.pUsername=:pusername")})
	
public class Personpk implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private int pID;

	private String pDeparture;

	private String pDestination;

	private String pExcursion;

	private String pFlight;

	private String pFName;

	private String pHotel;

	private String pLName;

	private String pNofdays;

	private String pPrice;
	
	private String pUsername;
	
	@Temporal(TemporalType.DATE)
	private Date pStartdate;
	
	

	public Personpk() {
		super();

	}
	
	public Personpk(personpkDTO personpkdto)
	{
	this.pID=personpkdto.getpID();
	this.pDestination=personpkdto.getpDestination();
	this.pDeparture=personpkdto.getpDeparture();
	this.pExcursion=personpkdto.getpExcursion();
	this.pFlight=personpkdto.getpFlight();
	this.pFName=personpkdto.getpFName();
	this.pHotel=personpkdto.getpHotel();
	this.pLName=personpkdto.getpLName();
	this.pNofdays=personpkdto.getpNofdays();
	this.pPrice=personpkdto.getpPrice();
	this.pStartdate=personpkdto.getpStartdate();
	this.pUsername=personpkdto.getpUsername();
		}

	


	public int getPID() {
		return this.pID;
	}

	public void setPID(int pID) {
		this.pID = pID;
	}

	public String getPDeparture() {
		return this.pDeparture;
	}

	public void setPDeparture(String pDeparture) {
		this.pDeparture = pDeparture;
	}

	public String getPDestination() {
		return this.pDestination;
	}

	public void setPDestination(String pDestination) {
		this.pDestination = pDestination;
	}

	public String getPExcursion() {
		return this.pExcursion;
	}

	public void setPExcursion(String pExcursion) {
		this.pExcursion = pExcursion;
	}

	public String getPFlight() {
		return this.pFlight;
	}

	public void setPFlight(String pFlight) {
		this.pFlight = pFlight;
	}

	public String getPFName() {
		return this.pFName;
	}

	public void setPFName(String pFName) {
		this.pFName = pFName;
	}

	public String getPHotel() {
		return this.pHotel;
	}

	public void setPHotel(String pHotel) {
		this.pHotel = pHotel;
	}

	public String getPLName() {
		return this.pLName;
	}

	public void setPLName(String pLName) {
		this.pLName = pLName;
	}

	public String getPNofdays() {
		return this.pNofdays;
	}

	public void setPNofdays(String pNofdays) {
		this.pNofdays = pNofdays;
	}

	public String getPPrice() {
		return this.pPrice;
	}

	public void setPPrice(String pPrice) {
		this.pPrice = pPrice;
	}

	public Date getPStartdate() {
		return this.pStartdate;
	}

	public void setPStartdate(Date pStartdate) {
		this.pStartdate = pStartdate;
	}

	public String getPUsername() {
		return this.pUsername;
	}

	public void setPUsername(String pUsername) {
		this.pUsername = pUsername;
	}
	@Override
	public String toString() {
		return "Personpk [pID=" + pID + ", pDeparture=" + pDeparture
				+ ", pDestination=" + pDestination + ", pExcursion="
				+ pExcursion + ", pFlight=" + pFlight + ", pFName=" + pFName
				+ ", pHotel=" + pHotel + ", pLName=" + pLName + ", pNofdays="
				+ pNofdays + ", pPrice=" + pPrice + ", pStartdate="
				+ pStartdate + ", pUsername=" + pUsername + "]";
	}


}